/*
 * CAnimation.h
 *
 *  Created on: 15/07/2008
 *      Author: Samuk
 */

#ifndef CANIMATION_H_
#define CANIMATION_H_

class CAnimation {
public:
	CAnimation();
	virtual ~CAnimation();

	void OnAnimate();

	int MaxFrames;
	bool Oscillate;

	void SetFrameRate(int Rate);
	void SetCurrentFrame(int Frame);
	int GetCurrentFrame();

private:
	int FrameRate; //Milliseconds
	long OldTime;
	int CurrentFrame;
	int FrameInc;
};

#endif /* CANIMATION_H_ */
